
#include "vm/vm.hpp"

using namespace rep;

namespace vm{
  Slot run(Continuation from){
    Slot answer;
    while(!from.ended()){
      from = from.next();
    }
    if(from.stack){
      from.pop(&answer);
    }else{
      answer.tag = Slot::VOID;
      answer.i = 0;
    }
    return answer;
  }
};
